home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / SAS-C / sc655pch / amiproc / simple.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-09  |  287 b   |  23 lines

  1. #include <stdio.h>
  2. #include "amiproc.h"
  3.  
  4. int func(void *string)
  5. {
  6.    printf("%s\n", string);
  7.    return 0;
  8. }
  9.  
  10. int main(void)
  11. {
  12.    int rc;
  13.    struct AmiProcMsg *apm;
  14.  
  15.    if(apm = AmiProc_Start(func, "This is a test"))
  16.       rc = AmiProc_Wait(apm);
  17.    else
  18.       rc = 20;
  19.  
  20.    return rc;
  21. }
  22.  
  23.